<template>
  <div id="app">
    <div id="nav">
      <router-link to="/shouye" tag="span">首页</router-link>
      <router-link to="/persion" tag="span">个人中心</router-link>
      <router-link to="/about" tag="span">关于</router-link>
    </div>
    <router-view/>
  </div>
</template>

<style lang="scss">
#nav{
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  //两端对齐
  justify-content: space-between;
  background-color: #fff;
  span{
    height: 40px;
    flex: 1;
    border: 1px solid #666;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    //align-items 的设置对象是行内成员;
    //align-content 的设置对象是所有行，且只有在多行弹性盒子容器中才生效。
    align-items: center;
    &.router-link-active{
      color: red;
    }
  }
}
</style>
